import { routerRedux } from 'dva/router';
import { message } from 'antd';
import { saveCategory } from '../services/api';
export default{
	namespace:'ProductList',
	state:{},
	effects:{
		*saveCategory({payload},{put,call}){
			const response=yield call(saveCategory,payload);
			 yield put({
		        type: 'saveCategory',
		        payload: response,
		     });
			console.log(payload);
		}
	},
	reducers:{
		saveCategory(state,{payload}){
			return {
				...state
			}
		}
	}
}